package com.lcke.demo.controller;

import com.lcke.common.rest.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class TestDemoController {


    /**
     * 分页示例
     *
     * @param model
     * @return
     */
    @ResponseBody
    @RequestMapping("/test/page")
    public PageInfo newspage(Model model) {
        return new PageInfo();
    }

    @RequestMapping("/table")
    public String findTest() {
        return "index.html";
    }
}
